package org.ricks.common.conf;

import java.util.ArrayList;
import java.util.List;

public class MainProcessor {

    private static List<org.ricks.common.conf.AbstractConfProcessor> confProcessors = new ArrayList<>();

    // get processors
    static {
        confProcessors.add(ConfClassProcessor.getProcessor());
    }


    public static void process() {
        confProcessors.forEach(confProcessor -> {
            try {
                confProcessor.process();
            } catch (Exception e) {
                e.printStackTrace();
            }
        });
    }

}
